package haizhi.fruitmall.enumeration;

import lombok.Getter;

/**
 * @Date: 2017/10/8 13:13
 * @Author: Richard Zane
 * @Detail:
 */


@Getter
public enum  ResultEnum implements BaseEnum{

    FAILURE(0,"失败！"),
    SUCCESS(1,"成功！"),
    ID_NOT_EMPTY(10,"编号不能为空！"),
    PARAM_ERROR(15,"参数错误！"),
    USER_NOT_EXIST(18,"用户不存在！" ),
    GOODS_CATEGORY_NOT_EXIST(20,"商品分类不存在！" ),
    GOODS_PARENT_CATEGORY_NOT_EXIST(21,"商品父级分类不存在！" ),
    GOODS_NOT_EXIST(22,"商品不存在！" ),
    GOODS_COMMENT_TYPE_NOT_EXIST(23,"商品评论类型不存在！" ),
    GOODS_COMMENT_PICTURE_NOT_EXIST(24,"商品评论图片不存在！" ),
    GOODS_PARAM_JOIN_NOT_EXIST(25,"商品参数关联不存在！" ),
    GOODS_PARAM_NOT_EXIST(26,"商品参数不存在！" ),
    GOODS_PARAM_TYPE_NOT_EXIST(28,"商品参数类型不存在！" ),
    GOODS_PICTURE_NOT_EXIST(29,"商品图片不存在！" ),
    GOODS_COMMENT_NOT_EXIST(30,"商品评论不存在！" ),
    PICTURE_NOT_EXIST(31,"图片不存在！" ),
    GOODS_CATEGORY_NAME_EXIST(32,"商品分类名称已经存在！" ),
    PICTURE_TYPE_NOT_EXIST(33,"图片类型不存在！" ),
    GOODS_PICTURE_TYPE_NOT_EXIST(34,"商品图片类型不存在！" ),
    GOODS_PARAM_PARENT_TYPE_NOT_EXIST(35, "商品参数父级类型不存在！"),
    GOODS_PARAM_TYPE_NAME_EXIST(36,"商品参数类型名称存在！" ),
    GOODS_CATEGORY_TOKEN_EXIST(37, "商品分类代表已存在！"),
    GOODS_BRAND_NOT_EXIST(38, "商品品牌不存在！")


    ;

    //代号
    private Integer code;
    //信息
    private String hint;

    ResultEnum(Integer code, String hint) {
        this.code = code;
        this.hint = hint;
    }
}
